package com.xingkeduo.dto.transter.hairstyleSelected;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xingkeduo.dto.HairstyleResponseDTO;
import com.xingkeduo.dto.HairstyleTableDTO;
import lombok.Data;

@Data
public class HairstyleList {
    private String id;
    private String name;
    @JsonProperty("hairsytle_label")
    private String hairsytleLabel;
    @JsonProperty("english_sign")
    private String englishSign;
    @JsonProperty("like_num")
    private String likeNum = "0";
    private String imgurl;

    public void covert(HairstyleTableDTO hairstyleTableDTO) {

        this.id = String.valueOf(hairstyleTableDTO.getId());
        this.name = hairstyleTableDTO.getName();
        this.englishSign = hairstyleTableDTO.getEnmark();
        this.hairsytleLabel = hairstyleTableDTO.getTitle();
        this.likeNum = String.valueOf(hairstyleTableDTO.getLikeNum());
        this.imgurl = hairstyleTableDTO.getCover();
    }
}
